01. Calculating Volatility
PRDTM2-786 AI Trading C3 L2 1 Calculating Volatility V3
Understanding Volatility and Its Calculation
Volatility gauges the variability of investment returns over a set period, indicating risk levels. High volatility suggests significant value shifts in a short span, presenting higher risk, while low volatility implies steadier value with lower risk.
Steps to Calculate Volatility:
- Gather Historical Return Data - Obtain returns (daily, weekly, monthly) based on the analysis timeframe.
- Convert Percentages to Decimals - For example, 5% converts to 0.05.
- Calculate Mean Return - Average the returns by summing them and dividing by the total count.
- Determine Deviations from Mean - Subtract mean from each return to find deviations.
- Square Deviations - Square each deviation to negate negative impacts.
- Sum Squared Deviations - Summed squared deviations are divided by one less than the total number of observations to find the variance.
- Find Standard Deviation - Take the square root of variance.
SOLUTION:
- To calculate volatility, you need to square the deviations of each return from the mean to ensure that positive and negative deviations do not cancel each other out.
- The standard deviation of returns, or volatility, gives an indication of how much the returns deviate from the mean return over a specific period.